*** Settings ***
Resource    ./utll.robot

*** Variables ***

${baidu_url}    http://www.baidu.com
${keyword_gitee}    gitee

*** Keywords ***
open baidu
    [Tags]    timeout=100ms
    ${res}=    openurl    http://www.baidu.com
    [return]    ${res}

baidu_search_keyword
    [Tags]    timeout=100ms
    ${search_url}    BuiltIn.Set Variable    http://www.baidu.com/s?wd=${keyword_gitee}
    ${res}=    open_url    ${search_url}
    [Return]    ${res}

open_bing
    [Tags]    timeout=100ms
    ${res}=    openurl    http://cn.bing.com/
    [return]    ${res} 

bing_search_keyword
    [Tags]    timeout=100ms
    ${search_url}    BuiltIn.Set Variable    http://cn.bing.com/search?q=${keyword_gitee}
    ${res}=    open_url    ${search_url}
    [Return]    ${res}
